/*
 * This computer program is the confidential information and proprietary trade
 * secret of Apptonelabs, Inc. Possessions and use of this program must
 * conform strictly to the license agreement between the user and
 * Apptonelabs, Inc., and receipt or possession does not convey any rights
 * to divulge, reproduce, or allow others to use this program without specific
 * written authorization of Apptonelabs, Inc.
 * 
 * Copyright (c) 2012-2015 Apptonelabs, Inc. All Rights Reserved.
 */
package com.apptonelabs.vnc.vphone;

public class MemInStream extends InStream {

	public MemInStream(byte[] data, int offset, int len) {
		b = data;
		ptr = offset;
		end = offset + len;
	}

	public int pos() {
		return ptr;
	}

	protected int overrun(int itemSize, int nItems) throws Exception {
		throw new Exception("MemInStream overrun: end of stream");
	}
}
